export default [
    {
        path: '/index',
        name: 'index',
        component: () => import('../views/index'),
        children: [
            //首页
            {
                path: '/home',
                name: 'home',
                component: () => import('../views/Home'),
            },
            //课程
            {
                path: '/course',
                name: 'course',
                component: () => import('../views/COURSE/course')
            },
            //约课记录
            {
                path: '/AboutTheClass',
                name: 'AboutTheClass',
                component: () => import('../views/AboutTheClass'),
            },
            //练习
            {
                path: '/exercise',
                name: 'exercise',
                component: () => import('../views/Practice/practice'),
            },
            //我的
            {
                path: '/mine',
                name: 'mine',
                component: () => import('../views/mine'),
            },
            {
                path: '/calendars',
                name: 'calendars',
                component: () => import('../components/calendars'),
            },
        ],
    },
    //个人中心
    {
        path: '/personal',
        name: 'personal',
        component: () => import('../views/my/personal'),
    },
    //性别
    {
        path: '/six',
        name: 'six',
        component: () => import('../views/my/six'),
    },
    //学科
    {
        path: '/students',
        name: 'students',
        component: () => import('../views/my/students'),
    },
    //昵称
    {
        path: '/nickname',
        name: 'nickname',
        component: () => import('../views/my/nickname'),
    },
    //设置
    {
        path: '/shezhi',
        name: 'shezhi',
        component: () => import('../views/my/shezhi'),
    },
    //设置密码
    {
        path: '/shezhimima',
        name: 'shezhimima',
        component: () => import('../views/my/shezhimima'),
    },
    //我的关注
    {
        path: '/attention',
        name: 'attention',
        component: () => import('../views/my/attention'),
    },
    //收藏
    {
        path: '/collects ',
        name: 'collects ',
        component: () => import('../views/my/collects '),
    },
    //订单
    {
        path: '/order',
        name: 'order',
        component: () => import('../views/my/order'),
    },
      // 辅导
      {
        path:"/coach",
        name:"Coach",
        component:()=>import("../views/Coach/Coach")
    },
    // 预约
    {
        path:"/coachDetail/:id",
        name:"CoachDetail",
        component:()=>import("../views/Coach/CoachDetail")
    },
    
    //练习
    {
        path:'',
        redirect: '/exercise'
    },
    //考点练习
    {
        path: '/designed',
        name: 'designed',
        component: () => import('../views/Practice/designed'),
    },
     //课程
     {
        path: '/point',
        name: 'point',
        component: () => import('../views/Practice/point'),
    },
    //套卷练习
    {
        path: '/volume',
        name: 'volume',
        component: () => import('../views/Practice/volume'),
    },
    //仿真模考
    {
        path: '/test',
        name: 'test',
        component: () => import('../views/Practice/test'),
    },
    //错题练习
    {
        path: '/wrong',
        name: 'wrong',
        component: () => import('../views/Practice/wrong'),
    },
    //测评记录
    {
        path: '/records',
        name: 'records',
        component: () => import('../views/Practice/records'),
    },
    //习题收藏
    {
        path: '/collection',
        name: 'collection',
        component: () => import('../views/Practice/collection'),
    },
    // 弹出登录
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/my/login'),
    },
    // 注册
    {
        path: '/register',
        name: 'register',
        component: () => import('../views/my/register'),
    },
    //找回密码
    {
        path: '/mima',
        name: 'mima',
        component: () => import('../views/my/mima'),
    },
    //设置密码
    {
        path: '/setaPassword',
        name: 'setaPassword',
        component: () => import('../views/my/setaPassword'),
    },
    //留言
    {
        path: '/liuyan',
        name: 'liuyan',
        component: () => import('../views/liuyan'),
    },

    //课程搜索
    {
        path: '/search',
        name: 'search',
        component: () => import('../views/COURSE/search'),
    },
    //课程详情
    {
        path: '/detail',
        name: 'detail',
        component: () => import('../views/COURSE/detail'),
    },
    //题目详情
    {
        path: '/ques',
        name: 'ques',
        component: () => import('../views/Practice/ques'),
    },
]